<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.text.*"%>
<%@ page import="org.osee.administration.service.*"%>
<%@ page import="org.osee.administration.domain.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="admin/styles/style.css" type="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>OSee观点搜索引擎 - 股票列表管理</title>
<script type="text/javascript" src="admin/script/feedback.js"></script>
</head>
<body>

<%
	String keyword = (String)request.getAttribute("keyword");
	if(keyword == null){
		keyword = "";
	}

	int currentPage = (Integer) request.getAttribute("currentPage");
	List<Feedback> fList = null;
	try {
		fList = (List<Feedback>) request.getAttribute("fList");
	} catch (Exception e) {
		e.printStackTrace();
	} finally {
		if (fList == null) {
			fList = new ArrayList<Feedback>();
		}
	}
%>
<div id="container">

	<%@ include file="inc/header.inc"%>
  	<div class="clr"></div>
  	<%@ include file="inc/menu.inc"%>

<div id="admin_content">
<div id="banner">
<div class="banner-c1"></div>
<div class="banner-text" style="width: 100px;">股票列表管理</div>
<div class="banner-c2"></div>
</div>
<!-- siderbar   start -->
<div id="new_ad" class="new_sth">
<div class="ad-left-top">
<div class="bar1-left"></div>
<div class="bar1-right"></div>
</div>
<div id="siderContent">
<ul style="text-align: right; padding-bottom: 429px; padding-top: 5px;">
	<li style="float: right;">
        <form action="admin-searchFeedbacks.htm" method="post"><input type="text" name="keyword"
            style="width: 65px; font-size: 11px;" /> <input type="submit"
            value="搜索反馈" style="font-size: 11px;" /></form>
	</li>

	<li style="float: left">
	<ul id="stockList">
<%
	int i = 0;
	for(Feedback f: fList){
		i ++;
%>
	<li style="width:160px;">
		<table>
          <tr><td width="15px"><%=i %></td><td width="120px" onclick="showDetail(<%=f.getId() %>)"><%=f.getTitle() %></a></td><td width="10px" onclick="deleteFeedback(this)" title="<%=f.getId() %>"><img src="admin/img/delete.png" /></td></tr>
        </table>
	</li>
	<%} %>
	</ul>
    <li><span style="padding: 3px 16px 3px 16px; float:left; border:1px solid #999999; margin-left:50px;"><a onClick="submitForm(<%=currentPage - 1 %>)">&laquo;</a></span><span style="padding: 3px 16px 3px 16px; margin-right:60px; float:right; border:1px solid #999999"><a onClick="submitForm(<%=currentPage + 1 %>)">&raquo;</a></span></li>
	</li>
</ul>
</div>
</div>
<!-- siderbar   end -->

<!-- formList start -->
    <div id="admin_ctt_list">
      <div class="ad-right-top">
        <div class="bar2-left"></div>
        <div class="bar2-center"></div>
        <div class="bar2-right"></div>
      </div>
      <div id="formContent">
       	<div id="feedbackAll" style="text-align:center; margin-left:15px; margin-right:15px">
			<div id="title" style="font-weight:bold; padding-top:10px">
			<% 
				if(fList.size() != 0){
          			out.println(fList.get(0).getTitle());
          		}
			%>
			</div>
			<div style="height:5px; border-top:1px solid #CCCCCC; margin-top:5px; margin-right:15px; margin-left:15px"></div>
			<div style="color: #666666">
			<% 
				if(fList.size() != 0){
          			out.println("反馈时间：" + fList.get(0).getIssueDatetime());
          		}
			%>
			</div>
			<div style="margin-top:10px; margin-bottom:10px; text-align:left">
          	<%
          		if(fList.size() == 0){
          			out.println("暂无反馈");
          		} else {
          			out.println(fList.get(0).getContent());
          		}
          	%>
			</div>
			<div style="margin-left:300px; margin-top:5px; margin-bottom:5px;">
			<% 
				if(fList.size() != 0){
          			out.println("反馈者：" + fList.get(0).getAuthorName());
          		}
			%>
			</div>
        </div>
      </div>
    </div>
<!-- formList end -->
<div class="clr"></div>
</div>
<div class="clr"></div>
<div id="footer"><span id="misc_info">&copy; 2009
武汉大学,保留所有权利 | <a target="_blank" href="">联系我们</a> | <a target="_blank"
	href="">隐私条款</a> | <a target="_blank" href="">使用说明</a> </span> <span
	id="version_info"> <a target="_blank" href="">武汉大学</a> | DEMO </span><br />
</div>
</div>
<div style="display:none" id="message" title="<%=keyword %>"></div>
</body>
</html>